//2024的二进制中有几个1
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n =2024;
	int count = 0;
	while(n>0)
	{
		if(n&1)
			count++;
		n >>= 1;
	}
	cout<<count;
	return 0;
}
